package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Block;
import com.xhwl.common.query.cent.sdata.BlockQuery;

import java.util.List;

/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 16:09 2021/7/16
 */
public interface IBlockService extends IService<Block> {

    ResultJson batchCreate(List<Block> blocks);

    ResultJson update(Block block);

    ResultJson create(Block block);

    List<Block> list(BlockQuery blockQuery);

    ResultJson delete(Integer id);

    Page<Block> page(BlockQuery blockQuery, Page page);

    ResultJson batchCreateFaster(List<Block> blocks);

    ResultJson refreshSort(BlockQuery blockQuery);
}
